package com.blackbrocast.mapper;

import com.blackbrocast.pojo.Location;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Mapper
@Repository
public interface LocationMapper {
    /**
     * 查询坐标记录
     *
     * @param info 查询信息
     * @return 返回
     */
    List<Location> getLocations(@Param("info") HashMap<String, Object> info);

    /**
     * 添加坐标记录
     *
     * @param info 添加信息
     */
    void addLocation(@Param("info") HashMap<String, Object> info);
}
